<?php
include "common.php";

while($r=fread(STDIN,1024)){
    $data=date("Y-m-d H:i:s ----").$r;
    if(!msg_queue_exists($key)){
        exit($key." not exists");
    }
    $send=msg_send($handle, $msgtype, $data, false,true, $errcode);
    echo posix_getpid()."-->son send ok!".PHP_EOL;


}





